GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch master (81a8a0)
by Vincent
02:52
created

module.exports   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 18

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 4
dl 0
loc 18
rs 9.4285
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A 0 16 1
1
'use strict';
2
3
var uglify = require('gulp-uglify');
4
5
module.exports = function (gulp, paths, plugins, options) {
6
    return function () {
7
        var bundleStream = plugins.browserify({
8
            entries: paths.SRC_PATH + 'js/main.js',
9
            debug: true
10
        }).transform(plugins.babelify, {presets: ["es2015"]}).bundle();
11
12
        return bundleStream
13
            .on('error', plugins.interceptErrors)
14
            .pipe(plugins.source('main.js'))
15
            .pipe(plugins.buffer())
16
            .pipe(plugins.if(!options.production, plugins.sourcemaps.init({loadMaps: true})))
17
            .pipe(plugins.if(options.production, uglify()))
18
            .pipe(plugins.if(!options.production, plugins.sourcemaps.write('./')))
19
            .pipe(gulp.dest(paths.THEME_PATH + 'dist/js/'))
20
            .pipe(plugins.browserSync.reload({stream: true}))
21
    };
22
};